from django.views.generic import ListView
from apps.articles.models import Article

class specie(ListView):
    template_name = 'articles/specie.html'
    
    def get_queryset(self):
        return Article.objects.filter(types=0)
    

class installation(ListView):
    template_name = 'articles/installation.html'
    
    def get_queryset(self):
        return Article.objects.filter(types=1)